package com.ddwl.schema.bo.message;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @author Fu Zhaohui
 * @date 2015/12/4 0004
 */
@ApiModel(description = "微信公众号模板消息Bo")
@Setter
@Getter
public class WxTemplateBo {

    private String touser;
    private String template_id;
    private String url;
    private String topcolor;
    private TemplateData data;

    @Setter
    @Getter
    public class TemplateData {

        private Node first;
        private Node Goods;
        private Node productType;
        private Node name;
        private Node contentType;
        private Node keyword1;
        private Node keyword2;
        private Node keyword3;
        private Node keyword4;
        private Node keyword5;
        private Node remark;
        private Node accountType;
        private Node account;
        private Node amount;
        private Node time;
        private Node result;
        private Node reason;
        private Node refund;
    }

    @Setter
    @Getter
    @AllArgsConstructor
    public class Node {

        private String value;
        private String color;

        public Node(String value) {
            this.value = value;
        }
    }
}
